package com.learn.ert.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.learn.ert.service.ErUserService;
import java.util.Map;


/**
 * 
 *
 * @author sjf
 * @email 2334593702@qq.com
 * @date 2020-08-14 17:47:02
 */
@RestController
@RequestMapping("api/eruser")
@Api(tags = "用户信息接口")
public class ErUserController {
    @Autowired
    private ErUserService erUserService;


/*
    *//**
     * 列表
     *//*
    @RequestMapping("/list")
  //  @RequiresPermissions("api:eruser:list")
    public BaseResponse<JSONObject> list(@RequestParam Map<String, Object> params){
        PageUtils page = erUserMapper.queryPage(params);

        return setResultSuccess("");
    }*/

/*

    */
/**
     * 信息
     *//*

    @RequestMapping("/info/{uId}")
   // @RequiresPermissions("api:eruser:info")
    public R info(@PathVariable("uId") Integer uId){
		ErUserEntity erUser = erUserMapper.selectById(uId);

        return R.ok().put("erUser", erUser);
    }

    */
/**
     * 保存
     *//*

    @RequestMapping("/save")
   // @RequiresPermissions("api:eruser:save")
    public R save(@RequestBody ErUserEntity erUser){
		erUserMapper.insert(erUser);

        return R.ok();
    }

    */
/**
     * 修改
     *//*

    @RequestMapping("/update")
    //@RequiresPermissions("api:eruser:update")
    public R update(@RequestBody ErUserEntity erUser){
		erUserMapper.updateById(erUser);

        return R.ok();
    }
*/

    /**
     * 删除
     */
//    @RequestMapping("/delete")
    //@RequiresPermissions("api:eruser:delete")
//    public R delete(@RequestBody Integer[] uIds){
//		erUserMapper.removeByIds(Arrays.asList(uIds));
//
//        return R.ok();
//    }

}
